.class Lweibo4android/WeiboSupport;
.super Ljava/lang/Object;
.source "WeiboSupport.java"


# instance fields
.field protected final USE_SSL:Z

.field protected http:Lweibo4android/http/HttpClient;

.field protected source:Ljava/lang/String;


# direct methods
.method constructor <init>()V
    .locals 1

    .prologue
    const/4 v0, 0x0

    .line 40
    invoke-direct {p0, v0, v0}, Lweibo4android/WeiboSupport;-><init>(Ljava/lang/String;Ljava/lang/String;)V

    .line 41
    return-void
.end method

.method constructor <init>(Ljava/lang/String;Ljava/lang/String;)V
    .locals 2
    .parameter "userId"
    .parameter "password"

    .prologue
    const/4 v1, 0x0

    .line 42
    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    .line 35
    new-instance v0, Lweibo4android/http/HttpClient;

    invoke-direct {v0}, Lweibo4android/http/HttpClient;-><init>()V

    iput-object v0, p0, Lweibo4android/WeiboSupport;->http:Lweibo4android/http/HttpClient;

    .line 36
    invoke-static {}, Lweibo4android/Configuration;->getSource()Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lweibo4android/WeiboSupport;->source:Ljava/lang/String;

    .line 43
    invoke-static {}, Lweibo4android/Configuration;->useSSL()Z

    move-result v0

    iput-boolean v0, p0, Lweibo4android/WeiboSupport;->USE_SSL:Z

    .line 44
    invoke-virtual {p0, v1}, Lweibo4android/WeiboSupport;->setClientVersion(Ljava/lang/String;)V

    .line 45
    invoke-virtual {p0, v1}, Lweibo4android/WeiboSupport;->setClientURL(Ljava/lang/String;)V

    .line 46
    return-void
.end method


# virtual methods
.method public forceUsePost(Z)V
    .locals 0
    .parameter "forceUsePost"

    .prologue
    .line 204
    return-void
.end method

.method public getClientURL()Ljava/lang/String;
    .locals 2

    .prologue
    .line 99
    iget-object v0, p0, Lweibo4android/WeiboSupport;->http:Lweibo4android/http/HttpClient;

    const-string v1, "X-Weibo-Client-URL"

    invoke-virtual {v0, v1}, Lweibo4android/http/HttpClient;->getRequestHeader(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getClientVersion()Ljava/lang/String;
    .locals 2

    .prologue
    .line 81
    iget-object v0, p0, Lweibo4android/WeiboSupport;->http:Lweibo4android/http/HttpClient;

    const-string v1, "X-Weibo-Client-Version"

    invoke-virtual {v0, v1}, Lweibo4android/http/HttpClient;->getRequestHeader(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getPassword()Ljava/lang/String;
    .locals 1

    .prologue
    .line 117
    iget-object v0, p0, Lweibo4android/WeiboSupport;->http:Lweibo4android/http/HttpClient;

    invoke-virtual {v0}, Lweibo4android/http/HttpClient;->getPassword()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getSource()Ljava/lang/String;
    .locals 1

    .prologue
    .line 182
    iget-object v0, p0, Lweibo4android/WeiboSupport;->source:Ljava/lang/String;

    return-object v0
.end method

.method public getUserAgent()Ljava/lang/String;
    .locals 1

    .prologue
    .line 63
    iget-object v0, p0, Lweibo4android/WeiboSupport;->http:Lweibo4android/http/HttpClient;

    invoke-virtual {v0}, Lweibo4android/http/HttpClient;->getUserAgent()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public getUserId()Ljava/lang/String;
    .locals 1

    .prologue
    .line 108
    iget-object v0, p0, Lweibo4android/WeiboSupport;->http:Lweibo4android/http/HttpClient;

    invoke-virtual {v0}, Lweibo4android/http/HttpClient;->getUserId()Ljava/lang/String;

    move-result-object v0

    return-object v0
.end method

.method public isUsePostForced()Z
    .locals 1

    .prologue
    .line 210
    const/4 v0, 0x0

    return v0
.end method

.method public setClientURL(Ljava/lang/String;)V
    .locals 2
    .parameter "clientURL"

    .prologue
    .line 90
    const-string v0, "X-Weibo-Client-URL"

    invoke-static {p1}, Lweibo4android/Configuration;->getClientURL(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Lweibo4android/WeiboSupport;->setRequestHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 91
    return-void
.end method

.method public setClientVersion(Ljava/lang/String;)V
    .locals 2
    .parameter "version"

    .prologue
    .line 72
    const-string v0, "X-Weibo-Client-Version"

    invoke-static {p1}, Lweibo4android/Configuration;->getCilentVersion(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v1

    invoke-virtual {p0, v0, v1}, Lweibo4android/WeiboSupport;->setRequestHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 73
    return-void
.end method

.method public setHttpConnectionTimeout(I)V
    .locals 1
    .parameter "connectionTimeout"

    .prologue
    .line 152
    iget-object v0, p0, Lweibo4android/WeiboSupport;->http:Lweibo4android/http/HttpClient;

    invoke-virtual {v0, p1}, Lweibo4android/http/HttpClient;->setConnectionTimeout(I)V

    .line 153
    return-void
.end method

.method public setHttpProxy(Ljava/lang/String;I)V
    .locals 1
    .parameter "proxyHost"
    .parameter "proxyPort"

    .prologue
    .line 128
    iget-object v0, p0, Lweibo4android/WeiboSupport;->http:Lweibo4android/http/HttpClient;

    invoke-virtual {v0, p1}, Lweibo4android/http/HttpClient;->setProxyHost(Ljava/lang/String;)V

    .line 129
    iget-object v0, p0, Lweibo4android/WeiboSupport;->http:Lweibo4android/http/HttpClient;

    invoke-virtual {v0, p2}, Lweibo4android/http/HttpClient;->setProxyPort(I)V

    .line 130
    return-void
.end method

.method public setHttpProxyAuth(Ljava/lang/String;Ljava/lang/String;)V
    .locals 1
    .parameter "proxyUser"
    .parameter "proxyPass"

    .prologue
    .line 140
    iget-object v0, p0, Lweibo4android/WeiboSupport;->http:Lweibo4android/http/HttpClient;

    invoke-virtual {v0, p1}, Lweibo4android/http/HttpClient;->setProxyAuthUser(Ljava/lang/String;)V

    .line 141
    iget-object v0, p0, Lweibo4android/WeiboSupport;->http:Lweibo4android/http/HttpClient;

    invoke-virtual {v0, p2}, Lweibo4android/http/HttpClient;->setProxyAuthPassword(Ljava/lang/String;)V

    .line 142
    return-void
.end method

.method public setHttpReadTimeout(I)V
    .locals 1
    .parameter "readTimeoutMilliSecs"

    .prologue
    .line 162
    iget-object v0, p0, Lweibo4android/WeiboSupport;->http:Lweibo4android/http/HttpClient;

    invoke-virtual {v0, p1}, Lweibo4android/http/HttpClient;->setReadTimeout(I)V

    .line 163
    return-void
.end method

.method public setRequestHeader(Ljava/lang/String;Ljava/lang/String;)V
    .locals 1
    .parameter "name"
    .parameter "value"

    .prologue
    .line 192
    iget-object v0, p0, Lweibo4android/WeiboSupport;->http:Lweibo4android/http/HttpClient;

    invoke-virtual {v0, p1, p2}, Lweibo4android/http/HttpClient;->setRequestHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 193
    return-void
.end method

.method public setRetryCount(I)V
    .locals 1
    .parameter "retryCount"

    .prologue
    .line 214
    iget-object v0, p0, Lweibo4android/WeiboSupport;->http:Lweibo4android/http/HttpClient;

    invoke-virtual {v0, p1}, Lweibo4android/http/HttpClient;->setRetryCount(I)V

    .line 215
    return-void
.end method

.method public setRetryIntervalSecs(I)V
    .locals 1
    .parameter "retryIntervalSecs"

    .prologue
    .line 218
    iget-object v0, p0, Lweibo4android/WeiboSupport;->http:Lweibo4android/http/HttpClient;

    invoke-virtual {v0, p1}, Lweibo4android/http/HttpClient;->setRetryIntervalSecs(I)V

    .line 219
    return-void
.end method

.method public setSource(Ljava/lang/String;)V
    .locals 2
    .parameter "source"

    .prologue
    .line 172
    invoke-static {p1}, Lweibo4android/Configuration;->getSource(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v0

    iput-object v0, p0, Lweibo4android/WeiboSupport;->source:Ljava/lang/String;

    .line 173
    const-string v0, "X-Weibo-Client"

    iget-object v1, p0, Lweibo4android/WeiboSupport;->source:Ljava/lang/String;

    invoke-virtual {p0, v0, v1}, Lweibo4android/WeiboSupport;->setRequestHeader(Ljava/lang/String;Ljava/lang/String;)V

    .line 174
    return-void
.end method

.method public setUserAgent(Ljava/lang/String;)V
    .locals 1
    .parameter "userAgent"

    .prologue
    .line 54
    iget-object v0, p0, Lweibo4android/WeiboSupport;->http:Lweibo4android/http/HttpClient;

    invoke-virtual {v0, p1}, Lweibo4android/http/HttpClient;->setUserAgent(Ljava/lang/String;)V

    .line 55
    return-void
.end method
